package cordoba.presentation
{
    import cordoba.application.ChangePlanEvent;
    import cordoba.domain.Plan;
    import cordoba.domain.Plans;
    
    import flash.events.EventDispatcher;

    public class PlansListPM extends EventDispatcher
    {
        [Inject]
        [Bindable]
        public var plans:Plans;
        
        [MessageDispatcher]
        public var dispatcher:Function;
        
        public function changePlan(plan:Plan):void {
            dispatcher(new ChangePlanEvent(plan));
        }
    }
}